package com.llt.test.listToMap;

import lombok.Getter;

@Getter
class Student {
    // Getter 方法
    private Long id;
    private String name;
    private int age;

    // 构造函数
    public Student(Long id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    // 为了方便打印
    @Override
    public String toString() {
        return "Student{id=" + id + ", name='" + name + "', age=" + age + "}";
    }
}
